package com.dk.service;

import com.dk.pojo.Role;
import com.dk.pojo.User;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

public interface UserService {
    List<User> selectInfo();

    List<Role> selctBRole();

    boolean insert(User user, Integer[] rid);

    User selctBuid(Integer uid);

    List<Role> selecBrole();

    List<Integer> selectRid(Integer uid);

    boolean updateInByRid(User u, Integer[] rid);

    boolean deleteByid(Integer id);

    Map<String, Object> selectBynamepassword(String uname, String password);

    boolean selectBname(String uname);

    boolean insertInfo(User y) throws UnsupportedEncodingException, NoSuchAlgorithmException;
}
